package cn.lyq.card.ui.income

import cn.lyq.card.base.SimpleVM


class IncomeVM : SimpleVM() {

    val pageSize = 10
    var profitType: Int = 0

    fun getProfit(type: Int, date: String, page: Int) = simpleEmit {
        repository.achievementService.getProfit(type+1, profitType + 1, date, page, pageSize)
    }
}